package com.ssm.util;

/**
 * 随机生成验证码工具类
 * @author myx
 *
 */
public class VerifyCode {
	/**
	 * 获取一个6位随机验证码
	 * @return Integer vCode 验证码
	 * @throws Exception
	 */
	public static Integer getVerifyCode()throws Exception{
		int vCode = (int)((Math.random()*9+1)*100000);
		System.out.println("随机验证码："+vCode);
		return vCode;
	}
	
}
